name: pre-commit
run_id: commands[2]
env HOME: /home/jenkins
env LANG: C.UTF-8
env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-t9y1/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin
env PYTHONHASHSEED: 2625529672
env PIP_DISABLE_PIP_VERSION_CHECK: 1
env PYTHONIOENCODING: utf-8
env OLM_TIMER1: 3000
env OLM_TIMER2: 2000
env TOX_ENV_NAME: pre-commit
env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox
env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit
env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit
metadata pid: 29165
cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests
allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin/*:sh:cpan:sudo:which:fixCIcentOS8reposMirrors.sh
cmd: pre-commit run --all-files --show-diff-on-failure
exit_code: 1
[WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version.  Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this.  if it does not -- consider reporting an issue to that repo.
[INFO] Initializing environment for https://github.com/jorisroovers/gitlint.
[INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps].
[INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8.
[INFO] Initializing environment for https://github.com/perltidy/perltidy.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/perltidy/perltidy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
trim trailing whitespace.................................................Passed
Tabs remover.............................................................Passed
autopep8.................................................................Failed
- hook id: autopep8
- files were modified by this hook
perltidy.................................................................Passed
pre-commit hook(s) made changes.
If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`.
To run `pre-commit` as part of git workflow, use `pre-commit install`.
All changes made by hooks:
diff --git a/tests/transportpce_tests/2.2.1/test16_freq_end2end.py b/tests/transportpce_tests/2.2.1/test16_freq_end2end.py
index 1eefbc44..01cd7074 100644
--- a/tests/transportpce_tests/2.2.1/test16_freq_end2end.py
+++ b/tests/transportpce_tests/2.2.1/test16_freq_end2end.py
@@ -269,19 +269,19 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                "name":"DEG2-TTP-TXRX-mc-282:287",
-                "supporting-circuit-pack-name":"2/0",
-                "operational-state":"inService",
-                "administrative-state":"inService",
-                "type":"org-openroadm-interfaces:mediaChannelTrailTerminationPoint",
-                "circuit-id":"   TBD    ",
-                "org-openroadm-media-channel-interfaces:mc-ttp":{
-                    "max-freq":"193.11875",
-                    "min-freq":"193.08125"
+                "name": "DEG2-TTP-TXRX-mc-282:287",
+                "supporting-circuit-pack-name": "2/0",
+                "operational-state": "inService",
+                "administrative-state": "inService",
+                "type": "org-openroadm-interfaces:mediaChannelTrailTerminationPoint",
+                "circuit-id": "   TBD    ",
+                "org-openroadm-media-channel-interfaces:mc-ttp": {
+                    "max-freq": "193.11875",
+                    "min-freq": "193.08125"
                 },
-                "supporting-interface":"OMS-DEG2-TTP-TXRX",
-                "supporting-port":"L1",
-                "description":"  TBD   "
+                "supporting-interface": "OMS-DEG2-TTP-TXRX",
+                "supporting-port": "L1",
+                "description": "  TBD   "
             },
             response['interface'][0]
         )
@@ -292,18 +292,18 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                'name':'DEG2-TTP-TXRX-nmc-282:287',
-                'supporting-circuit-pack-name':'2/0',
-                'operational-state':'inService',
-                'administrative-state':'inService',
-                'type':'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
-                'circuit-id':'   TBD    ',
-                'supporting-interface':'DEG2-TTP-TXRX-mc-282:287',
-                'supporting-port':'L1',
-                'description':'  TBD   ',
-                'org-openroadm-network-media-channel-interfaces:nmc-ctp':{
-                    'frequency':'193.1',
-                    'width':'29.5'
+                'name': 'DEG2-TTP-TXRX-nmc-282:287',
+                'supporting-circuit-pack-name': '2/0',
+                'operational-state': 'inService',
+                'administrative-state': 'inService',
+                'type': 'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
+                'circuit-id': '   TBD    ',
+                'supporting-interface': 'DEG2-TTP-TXRX-mc-282:287',
+                'supporting-port': 'L1',
+                'description': '  TBD   ',
+                'org-openroadm-network-media-channel-interfaces:nmc-ctp': {
+                    'frequency': '193.1',
+                    'width': '29.5'
                 }
             },
             response['interface'][0]
@@ -315,17 +315,17 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                "name":"SRG3-PP1-TXRX-nmc-282:287",
-                "supporting-circuit-pack-name":"5/0",
-                "operational-state":"inService",
-                "administrative-state":"inService",
-                "type":"org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint",
-                "circuit-id":"   TBD    ",
-                "supporting-port":"C1",
-                "description":"  TBD   ",
-                "org-openroadm-network-media-channel-interfaces:nmc-ctp":{
-                    "frequency":"193.1",
-                    "width":"29.5"
+                "name": "SRG3-PP1-TXRX-nmc-282:287",
+                "supporting-circuit-pack-name": "5/0",
+                "operational-state": "inService",
+                "administrative-state": "inService",
+                "type": "org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint",
+                "circuit-id": "   TBD    ",
+                "supporting-port": "C1",
+                "description": "  TBD   ",
+                "org-openroadm-network-media-channel-interfaces:nmc-ctp": {
+                    "frequency": "193.1",
+                    "width": "29.5"
                 }
             },
             response['interface'][0]
@@ -337,19 +337,19 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                'name':'DEG1-TTP-TXRX-mc-282:287',
-                'supporting-circuit-pack-name':'1/0',
-                'operational-state':'inService',
-                'administrative-state':'inService',
-                'type':'org-openroadm-interfaces:mediaChannelTrailTerminationPoint',
-                'circuit-id':'   TBD    ',
-                'org-openroadm-media-channel-interfaces:mc-ttp':{
-                    'max-freq':'193.11875',
-                    'min-freq':'193.08125'
+                'name': 'DEG1-TTP-TXRX-mc-282:287',
+                'supporting-circuit-pack-name': '1/0',
+                'operational-state': 'inService',
+                'administrative-state': 'inService',
+                'type': 'org-openroadm-interfaces:mediaChannelTrailTerminationPoint',
+                'circuit-id': '   TBD    ',
+                'org-openroadm-media-channel-interfaces:mc-ttp': {
+                    'max-freq': '193.11875',
+                    'min-freq': '193.08125'
                 },
-                'supporting-interface':'OMS-DEG1-TTP-TXRX',
-                'supporting-port':'L1',
-                'description':'  TBD   '
+                'supporting-interface': 'OMS-DEG1-TTP-TXRX',
+                'supporting-port': 'L1',
+                'description': '  TBD   '
             },
             response['interface'][0]
         )
@@ -360,18 +360,18 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                'name':'DEG1-TTP-TXRX-nmc-282:287',
-                'supporting-circuit-pack-name':'1/0',
-                'operational-state':'inService',
-                'administrative-state':'inService',
-                'type':'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
-                'circuit-id':'   TBD    ',
-                'supporting-interface':'DEG1-TTP-TXRX-mc-282:287',
-                'supporting-port':'L1',
-                'description':'  TBD   ',
-                'org-openroadm-network-media-channel-interfaces:nmc-ctp':{
-                    'frequency':'193.1',
-                    'width':'29.5'
+                'name': 'DEG1-TTP-TXRX-nmc-282:287',
+                'supporting-circuit-pack-name': '1/0',
+                'operational-state': 'inService',
+                'administrative-state': 'inService',
+                'type': 'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
+                'circuit-id': '   TBD    ',
+                'supporting-interface': 'DEG1-TTP-TXRX-mc-282:287',
+                'supporting-port': 'L1',
+                'description': '  TBD   ',
+                'org-openroadm-network-media-channel-interfaces:nmc-ctp': {
+                    'frequency': '193.1',
+                    'width': '29.5'
                 }
             },
             response['interface'][0]
@@ -383,17 +383,17 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(response['status_code'], requests.codes.ok)
         self.assertDictEqual(
             {
-                'name':'SRG1-PP1-TXRX-nmc-282:287',
-                'supporting-circuit-pack-name':'3/0',
-                'operational-state':'inService',
-                'administrative-state':'inService',
-                'type':'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
-                'circuit-id':'   TBD    ',
-                'supporting-port':'C1',
-                'description':'  TBD   ',
-                'org-openroadm-network-media-channel-interfaces:nmc-ctp':{
-                    'frequency':'193.1',
-                    'width':'29.5'
+                'name': 'SRG1-PP1-TXRX-nmc-282:287',
+                'supporting-circuit-pack-name': '3/0',
+                'operational-state': 'inService',
+                'administrative-state': 'inService',
+                'type': 'org-openroadm-interfaces:networkMediaChannelConnectionTerminationPoint',
+                'circuit-id': '   TBD    ',
+                'supporting-port': 'C1',
+                'description': '  TBD   ',
+                'org-openroadm-network-media-channel-interfaces:nmc-ctp': {
+                    'frequency': '193.1',
+                    'width': '29.5'
                 }
             },
             response['interface'][0]
@@ -698,5 +698,6 @@ class TransportPCEtesting(unittest.TestCase):
         response = test_utils.unmount_device("ROADM-C1")
         self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content))
 
+
 if __name__ == "__main__":
     unittest.main(verbosity=2)